package org.easy.http.client.resouce;

import org.easy.http.client.util.ResourceUtils;

/**
 * @Description TODO
 * @Author WuXueLi
 * @Date 16:54 2023/2/4
 * @Version 1.0
 **/
public interface EasyResourceDescriptorLoader {

    String CLASSPATH_URL_PREFIX = ResourceUtils.CLASSPATH_URL_PREFIX;

    /**
     * 获取资源
     * @param location 路径
     * @return EasyResourceDescriptor
     */
    EasyResourceDescriptor getResourceDescriptor(String location);

    /**
     * 获取类加载器
     * @return ClassLoader
     */
    ClassLoader getClassLoader();

}
